<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchResults.ascx.cs" Inherits="WebControl.VehicleSearch.SearchResults" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<div id="divStockList" runat="server" style="width: 100%">
    <!-- Vehicle Stock List Header-->
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr class="stock_function_bar_footer">
            <td align="left" style="height: 22px" valign="middle">
                <asp:Label ID="uicFunctionBarTopNotice" runat="server"></asp:Label>
            </td>
            <td align="left" style="height: 22px" valign="middle">
                <div id="divFunctionBarTop" runat="server">
                    &nbsp;
                    &nbsp; Page&nbsp;
                    <asp:DropDownList ID="uicPageSelect" runat="server" OnSelectedIndexChanged="DropDownListSelectedIndexChanged"
                        Style="width: 42px">
                    </asp:DropDownList>
                    &nbsp; <span id="uicPageNotice" runat="server"></span>
                    <asp:LinkButton ID="uicLinkFirst" runat="server" CommandName="First" CssClass="LinkNavTop"
                        OnCommand="LinkButton_Click">first</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="uicLinkPrevious" runat="server" CommandName="Prev" CssClass="LinkNavTop"
                        OnCommand="LinkButton_Click">prev</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="uicLinkNext" runat="server" CommandName="Next" CssClass="LinkNavTop"
                        OnCommand="LinkButton_Click">next</asp:LinkButton>
                    &nbsp;&nbsp;
                    <asp:LinkButton ID="uicLinkLast" runat="server" CommandName="Last" CssClass="LinkNavTop"
                        OnCommand="LinkButton_Click">last</asp:LinkButton>
                    &nbsp;&nbsp;
                </div>
            </td>
            <td align="right" style="height: 22px" valign="middle">
                Sort by:&nbsp;
                <asp:DropDownList ID="uicSortBy" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownListSelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
                <asp:DropDownList ID="uicOrder" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownListSelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
                &nbsp; View:&nbsp;
                <asp:DropDownList ID="uicViews" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DropDownListSelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
            </td>
        </tr>
    </table>
    <!-- Vehicle Stock List Body-->
    <!-- Option List -->
    <asp:Repeater ID="uicRepeaterList" runat="server" OnItemDataBound="uicRepeater_ItemDataBound">
        <HeaderTemplate>
            <table border='0' cellpadding='0' cellspacing='0' width='100%'>
                <tr class="DataListColumnHeader" style="height: 24px;">
                    <td align="left">
                        Stock #</td>
                    <td align="left">
                        Make/Model</td>
                    <td align="left" style="width: 50px;">
                        Year</td>
                    <td align="left" style="width: 130px;">
                        Type</td>
                    <td align="left" style="width: 120px;">
                        Transmission</td>
                    <td align="right" style="width: 50px;">
                        CC</td>
                    <td align="right" style="width: 60px;">
                        Odo</td>
                    <td id="tblCell" runat="server" align="right" style="width: 60px;">
                        Price</td>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr id="divDataListItem" runat="server" class="stock_item" style="height: 22px;">
                <td id="uicStockNo" runat="server" align="left">
                </td>
                <td id="uicMakeModel" runat="server" align="left">
                </td>
                <td id="uicYear" runat="server" align="left">
                </td>
                <td id="uicType" runat="server" align="left">
                </td>
                <td id="uicTransmission" runat="server" align="left">
                </td>
                <td id="uicCC" runat="server" align="right">
                </td>
                <td id="uicOdometer" runat="server" align="right">
                </td>
                <td id="uicPrice" runat="server" align="right">
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr id="divDataListAlternatItem" runat="server" class="stock_item_alternate" style="height: 22px;">
                <td id="uicStockNo" runat="server" align="left">
                </td>
                <td id="uicMakeModel" runat="server" align="left">
                </td>
                <td id="uicYear" runat="server" align="left">
                </td>
                <td id="uicType" runat="server" align="left">
                </td>
                <td id="uicTransmission" runat="server" align="left">
                </td>
                <td id="uicCC" runat="server" align="right">
                </td>
                <td id="uicOdometer" runat="server" align="right">
                </td>
                <td id="uicPrice" runat="server" align="right">
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <!-- Option Gallery -->
    <asp:DataList ID="uicDataListGallery" runat="server" OnItemDataBound="uicDataList_ItemDataBound"
        RepeatColumns="2" RepeatDirection="horizontal" RepeatLayout="Table" Width="100%">
        <ItemStyle CssClass="stock_item" />
        <AlternatingItemStyle CssClass="stock_item_alternate" />
        <HeaderTemplate>
            <table border='0' cellpadding='0' cellspacing='0' width='100%'>
        </HeaderTemplate>
        <ItemTemplate>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr id="divDataListItem" runat="server">
                        <td style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px; width: 75px;"
                            valign="top">
                            <asp:Image ID="uicVehicleImage" runat="server" BorderColor="gray" BorderStyle="solid"
                                BorderWidth="1" Height="55" Width="75" />
                        </td>
                        <td align="left" style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"
                            valign="top">
                            <h4 id="uicVehicleHeder" runat="server">
                            </h4>
                            <br />
                            <span id="uicVehicleDescription" runat="server"></span>
                        </td>
                    </tr>
                </table>
            </td>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <td>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr id="divDataListAlternatItem" runat="server">
                        <td style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px; width: 75px;"
                            valign="top">
                            <asp:Image ID="uicVehicleImage" runat="server" BorderColor="gray" BorderStyle="solid"
                                BorderWidth="1" Height="55" Width="75" />
                        </td>
                        <td align="left" style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"
                            valign="top">
                            <h4 id="uicVehicleHeder" runat="server">
                            </h4>
                            <br />
                            <span id="uicVehicleDescription" runat="server"></span>
                        </td>
                    </tr>
                </table>
            </td>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:DataList>
    <!-- Option Gallery List-->
    <asp:Repeater ID="uicRepeaterGalleryList" runat="server" OnItemDataBound="uicRepeater_ItemDataBound">
        <HeaderTemplate>
            <table border='0' cellpadding='0' cellspacing='0' width='100%'>
        </HeaderTemplate>
        <ItemTemplate>
            <tr id="divDataListItem" runat="server" class="stock_item" style="height: 22px;">
                <td id="uicStockNo" runat="server" align="left" style="padding-left: 5px; padding-top: 5px;
                    padding-bottom: 5px; width: 75px;" valign="top">
                    <asp:Image ID="uicVehicleImage" runat="server" BorderColor="gray" BorderStyle="solid"
                        BorderWidth="1" />
                </td>
                <td align="left" style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"
                    valign="top">
                    <h4 id="uicVehicleHeder" runat="server">
                    </h4>
                    <br />
                    <span id="uicVehicleDescription" runat="server"></span>
                </td>
                <td>
                    <span id="uicPrice" runat="server" style="font-weight: bold;"></span>
                </td>
            </tr>
        </ItemTemplate>
        <AlternatingItemTemplate>
            <tr id="divDataListAlternatItem" runat="server" class="stock_item_alternate" style="height: 22px;">
                <td id="uicStockNo" runat="server" align="left" style="padding-left: 5px; padding-top: 5px;
                    padding-bottom: 5px; width: 75px;" valign="top">
                    <asp:Image ID="uicVehicleImage" runat="server" BorderColor="gray" BorderStyle="solid"
                        BorderWidth="1" />
                </td>
                <td align="left" style="padding-left: 5px; padding-top: 5px; padding-bottom: 5px;"
                    valign="top">
                    <h4 id="uicVehicleHeder" runat="server">
                    </h4>
                    <br />
                    <span id="uicVehicleDescription" runat="server"></span>
                </td>
                <td>
                    <span id="uicPrice" runat="server" style="font-weight: bold;"></span>
                </td>
            </tr>
        </AlternatingItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <!-- Vehicle Stock List Header-->
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr id="divFunctionBarBotttom" runat="server" class="stock_function_bar_footer">
            <td align="left" style="width: 20%" valign="middle">
                <asp:LinkButton ID="uicLinkFirst_Botom" runat="server" CommandName="First" CssClass="LinkNavTop"
                    OnCommand="LinkButton_Click">first</asp:LinkButton>
                &nbsp;&nbsp;
                <asp:LinkButton ID="uicLinkPrevious_Botom" runat="server" CommandName="Prev" CssClass="LinkNavTop"
                    OnCommand="LinkButton_Click">prev</asp:LinkButton>
            </td>
            <td align="center" valign="middle">
                <asp:Label ID="uicFunctionBarBotttomNotice" runat="server"></asp:Label>
            </td>
            <td align="right" style="width: 20%" valign="middle">
                <asp:LinkButton ID="uicLinkNext_Botom" runat="server" CommandName="Next" CssClass="LinkNavTop"
                    OnCommand="LinkButton_Click">next</asp:LinkButton>
                &nbsp;&nbsp;
                <asp:LinkButton ID="uicLinkLast_Botom" runat="server" CommandName="Last" CssClass="LinkNavTop"
                    OnCommand="LinkButton_Click">last</asp:LinkButton>
            </td>
        </tr>
    </table>
</div>
